package com.holly.unit.system.integration.modular.system.position;

import com.holly.unit.scanner.api.annotation.ApiResource;
import com.holly.unit.scanner.api.annotation.GetResource;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;

/**
 * 岗位管理控制器
 *
 * @author holly
 * @date 2020/12/28 9:28
 */
@Controller
@ApiResource(name = "岗位管理相关的界面渲染")
@Api(tags = "岗位管理相关的界面渲染")
public class PositionViewController {

    /**
     * 岗位管理-首页-视图
     *
     * @author holly
     * @date 2020/11/04 11:07
     */
    @ApiOperation(value = "岗位管理-首页-视图" ,notes = "岗位管理-首页-视图")
    @GetResource(name = "岗位管理-首页-视图", path = "/view/position")
    public String indexView() {
        return "/modular/system/position/position.html";
    }

    /**
     * 岗位管理-添加-视图
     *
     * @author holly
     * @date 2020/11/04 11:07
     */
    @ApiOperation(value = "岗位管理-添加-视图" ,notes = "岗位管理-添加-视图")
    @GetResource(name = "岗位管理-添加-视图", path = "/view/position/addView")
    public String addView() {
        return "/modular/system/position/position_add.html";
    }

    /**
     * 岗位管理-修改-视图
     *
     * @author holly
     * @date 2020/11/04 11:07
     */
    @ApiOperation(value = "岗位管理-修改-视图" ,notes = "岗位管理-修改-视图")
    @GetResource(name = "岗位管理-修改-视图", path = "/view/position/editView")
    public String editView() {
        return "/modular/system/position/position_edit.html";
    }

}
